import {reqIntelliHouseHold} from "@/api/index"
export default {
    state:{
        houseHold:{}
    },
    actions:{
        async getHouseHold({commit}){
            const result = await reqIntelliHouseHold()
            console.log(result.appliances)
            if(result.code ===200){
                commit('SAVE_HOUSEHOLD',result.appliances)
            }
        }
    },
    mutations:{
        SAVE_HOUSEHOLD(state,info){
            state.houseHold = info
        }
    },
    getters:{}
}